import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SPoint } from "./SPoint";
type int = number;
//class SPassTo
    
    export  class SPassTo
    {
       

        public __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.passToId);
            arg1.writeString(this.name);
            arg1.writeInt(this.mapId);
            this.toPoint.__write(arg1);
            arg1.writeInt(this.proxyId);
            arg1.writeInt(this.serverId);
            return;
        }

        public __read(arg1: SerializeStream): void
        {
            this.passToId = arg1.readInt();
            this.name = arg1.readString();
            this.mapId = arg1.readInt();
            this.toPoint = new SPoint();
            this.toPoint.__read(arg1);
            this.proxyId = arg1.readInt();
            this.serverId = arg1.readInt();
            return;
        }

        public /* var */passToId: int;

        public /* var */name: string;

        public /* var */mapId: int;

        public /* var */toPoint: SPoint;

        public /* var */proxyId: int;

        public /* var */serverId: int;
    }
